﻿@model ApCMS.Models.HomeModel
@{
    ViewBag.Title = "首页";
    int count = 0;
}
<div id="heroBanner">
    <a href="#">
        <img alt="" src="@Url.Content("~/Themes/ymdz/Content/images/banner.jpg")" /></a>
</div>
<div class="boxContainer grid_9 alpha omega">
    <h2>
        产品展示</h2>
    @foreach (var product in Model.ProductList)
    {
        count += 1;
        <div class="grid_3 alpha">
            <div class="box above">
                <div class="linklist">
                    <img class="small"  src="@(product.Photo)" />
                    <h3>
                        <a href="@Url.Action("Index", "Product")" style=" color:#555;">@(product.Name)</a>
                    </h3>
                </div>
            </div>
        </div>
        if (count % 3 == 0)
        { 
        <div class="clear">
        </div>
        }
    }
</div>
<div class="boxContainer grid_9 alpha omega">
    <h2>
        代理品牌</h2>
    @foreach (var link in Model.LinkList)
    {
        <div class="grid_3 alpha">
            <div class="box above">
                <div class="linklist">
                    <img class="mini"  src="@(link.ImageUrl ?? "~/Themes/ymdz/Content/images/aiab084197.png")" />
                    <h3>
                        @(link.Title)</h3>
                </div>
            </div>
        </div>
    }
    <div class="clear">
    </div>
</div>
